<?php

declare(strict_types=1);

namespace app\operations\validate\admin;

use sheep\validate\Backend;

class Store extends Backend
{
    protected $rule = [
        'status' => 'require|in:normal,close',  // 增加in验证
        'is_deposit_paid' => 'require|in:0,1',         // 增加in验证
    ];

    protected $message  =   [
        'status.require'     => '店铺状态错误',
        'status.in'          => '店铺状态错误',
        'is_deposit_paid.require' => '保证金状态错误',
        'is_deposit_paid.in'      => '保证金状态错误',
    ];

    protected $scene = [
        'edit'  =>  ['status', 'is_deposit_paid'],
    ];
}
